#ifndef QRESOURCEVIEW_H
#define QRESOURCEVIEW_H

#include "../../qbasedialog.h"

class QFileListView;
class QResourceShowWidget;

struct tagFileInfo;

class QResourceView : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QResourceView(QWidget *parent = 0);
    ~QResourceView();
    
    void    set_file(const QByteArray &data);

    tagFileInfo* get_file();

    int         get_ret();
protected slots:
    void    select(tagFileInfo* file);

    void    ok();
protected:
    QFileListView       *m_file_view;
    QResourceShowWidget *m_show_widget;

    tagFileInfo         *m_file_info;

    int                 m_ret;
};

#endif // QRESOURCEVIEW_H
